import request from '@/utils/axios/request'

export const getExamPaper = () => {
  return request({
    url: '/examfront/getExamPaper',
    method: 'get',
  })
}


export const checkConfig = () => {
  return request({
    url: '/examfront/checkConfig',
    method: 'post',
  })
}

export const submitExamPaper = (data: any) => {
  return request({
    url: '/examfront/submit',
    method: 'post',
    data:{
      examPaper: data
    },
  })
}

export const sendJumpMsg = () => {
  return request({
    url: '/examfront/sendJumpMsg',
    method: 'post',
  })
}

const examPaperApi = {
  getExamPaper,
  submitExamPaper,
  checkConfig,
  sendJumpMsg
}

export default examPaperApi